#ifndef MYMINIMUSIC_H
#define MYMINIMUSIC_H

#include "volumetool.h"

#include <QJsonArray>
#include <QWidget>
#include <musiclist.h>

QT_BEGIN_NAMESPACE
namespace Ui { class MyMiniMusic; }
QT_END_NAMESPACE

class MyMiniMusic : public QWidget
{
    Q_OBJECT

public:
    MyMiniMusic(QWidget *parent = nullptr);
    ~MyMiniMusic();

    void initWindow();
    void cnnectSignalAndSlots();
    QJsonArray randomPicture();
private slots:
    void on_quit_clicked();
    void onBtFormClick(int pageId);

    void on_volume_clicked();

    void on_addLocal_clicked();

protected:
    virtual void mouseMoveEvent(QMouseEvent *event) override;
    virtual void mousePressEvent(QMouseEvent *event) override;
private:
    Ui::MyMiniMusic *ui;
    QPoint dragPosition;
    VolumeTool* volumeTool;
    MusicList musicList;
};
#endif // MYMINIMUSIC_H
